package io.acna.blog.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import io.acna.basedao.mybatis.service.impl.BaseService;
import io.acna.blog.core.IndieSession;
import io.acna.blog.dao.ArticleMapper;
import io.acna.blog.entities.Article;
import io.acna.blog.service.IArticleService;
import org.springframework.beans.factory.annotation.Autowired;

@Service(version = "0.0.1")
public class ArticleService extends BaseService<Article> implements
        IArticleService {

    private final ArticleMapper articleDao;
    /**
     * user_id
     */
    public static final String COLUMN_NAME = "user_id";
    public static final String FIELD_ID_NAME = "articleId";

    @Autowired
    public ArticleService(ArticleMapper articleDao) {
        super(articleDao, COLUMN_NAME, FIELD_ID_NAME);
        this.articleDao = articleDao;
    }

    @Override
    public void publish(Article article, IndieSession session) {

    }

    @Override
    public void addTo(long id, String content, IndieSession session) {

    }

    @Override
    public void remove(long id, IndieSession session) {

    }
}
